#include "funcProcStructCrear.h"

unsigned int FuncProcStructCrear::operator() (
										const std::string &expr, 
										TipoStruct* reg_modelo, 
										unsigned int pos){
	
	FuncProcAtomCrear f;
	TipoStruct * _struct = new TipoStruct(true);
	
	try{
		f(expr, _struct, 0);
		reg_modelo->add_dato(*_struct);
		delete _struct;
	}catch(ExcepSintaxisParser &e){
		delete _struct;
		throw e;
	}
	
	return 0;
}
